package cn.edu.hy.demo03.controller;

import cn.edu.hy.demo03.model.User;
import cn.edu.hy.demo03.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


@Controller
public class UserController {
	
	private UserService userService;

	@Autowired
	public void setUserService( UserService userService) {
		this.userService = userService;
	}

	public User getUser(String id) {
		
		return userService.getUser(id);
	}

	public int deleteUser(String id) {
		return userService.deleteUser(id);
	}
}
